/*
 This file is part of BTStracker
		
    BTStracker is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    BTStracker is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.	
	author: azbest.pro (azbest.pro@gmail.com)
*/
package pl.vdl.azbest.log.gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.layout.GridData;

import pl.vdl.azbest.log.LoggingTheGathering;
import pl.vdl.azbest.log.gui.composite.CompositeLoggingTheGathering;
import pl.vdl.azbest.mremote.gui.SWTElement;

public class LoggingTheGatheringUI extends SWTElement{

	//private Shell sShell = null;  //  @jve:decl-index=0:visual-constraint="0,40"

	private Composite composite = null;

	/**
	 * This method initializes sShell
	 */
	protected void createSShell() {
		sShell = new Shell();
		sShell.setText("Shell");
		createComposite();
		sShell.setSize(new Point(348, 431));
		sShell.setLayout(new GridLayout());
		WIN_HEIGHT =431;
		WIN_WIDTH =348;
		
		
	}

	/**
	 * This method initializes composite
	 * 
	 */
	private void createComposite() {
		GridData gridData = new GridData();
		gridData.horizontalAlignment = GridData.FILL;
		gridData.grabExcessHorizontalSpace = true;
		gridData.grabExcessVerticalSpace = true;
		gridData.verticalAlignment = GridData.FILL;
		composite = new CompositeLoggingTheGathering(this.sShell, SWT.NONE);
		composite.setLayout(new GridLayout());
		composite.setLayoutData(gridData);
		init();
	}

	private void init() {
	lockSWTWidgetSize();
	}
	{
		LoggingTheGathering.addPath(getClass().getName());
	}
}
